/*
 * Copyright (c) 2022-2023 cetcclout Co., Ltd All rights reserved.
 * Sensor Adapter is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package com.cetccloud.cimp.adapter.datasource.sqldb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author
 * @apiNote 模型接入配置
 * @date 2022-12-28 17:19:48
 */
@ApiModel(description = "模型接入配置", value = "ServerConfig")
@Data
public class ServerConfig implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键标识
	 */
	@ApiModelProperty(value = "主键")
	private Integer id;
	/**
	 * 配置名称
	 */
	@ApiModelProperty(value = "配置名称")
	private String name;
	/**
	 * 协议(model_join_dict的name)
	 */
	@ApiModelProperty(value = "协议(model_join_dict的name)")
	private String protocol;
	/**
	 * 接入主题(mqtt)
	 */
	@ApiModelProperty(value = "接入主题(mqtt)")
	private String topic;
	/**
	 * ip或服务地址
	 */
	@ApiModelProperty(value = "ip或服务地址")
	private String ip;
	/**
	 * 端口
	 */
	@ApiModelProperty(value = "端口")
	private Integer port;
	/**
	 * 处理链
	 */
	@ApiModelProperty(value = "处理链")
	private String doLink;

	/**
	 * 处理链ID
	 */
	@ApiModelProperty(value = "处理链ID")
	private String links;

	/**
	 * 处理链
	 */
	@ApiModelProperty(value = "启动参数")
	private String params;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	private String remark;
	/**
	 * 状态(0:停用 1:启动)
	 */
	@ApiModelProperty(value = "状态(0:停用 1:启动)")
	private Integer status;
	/**
	 * 模型id
	 */
	@ApiModelProperty(value = "模型id")
	private String modelId;

	/**
	 * 描述
	 */
	@ApiModelProperty(value = "服务类型")
	private String serverType;

	@TableField(exist = false)
	private List<String> doLinkList;

	@TableField(exist = false)
	private List<String> linksList;
}
